/*
 * Created on 2006-7-3
 */
package msg;

import entity.Cell;
import entity.Velocity;

public class Msg_s2o_queryResult extends Message {
	int qid;

	Cell senderCell;
	Velocity v;

	public Msg_s2o_queryResult(int timestamp, int moid) {
		super();
		this.qid = moid;
		this.timepoint = timestamp;
		this.messageType = MessageTypes.s2o_queryResult;
	}

	// public Msg_s2o_queryResult(int ts, int queryid, Point2D senderLoc,
	// Velocity senderSpeed, Cell senderCell) {
	// super();
	// this.messageType = MessageTypes.s2o_queryResult;
	// this.timepoint = ts;
	// this.qid = queryid;
	// // this.msgLoc = senderLoc;
	// this.v = senderSpeed;
	// this.senderCell = senderCell;
	// }

	public String toString() {
		String s = this.timepoint + ", " + qid + ", " + this.messageType;
		// s = this.timepoint + " " + this.messageType + " " + this.qid + " "
		// + this.msgLoc.getX() + " " + this.msgLoc.getY() + " "
		// + this.v.getVx() + " " + this.v.getVy() + " "
		// + this.senderCell.x + " " + this.senderCell.y + " ";
		return s;
	}

}
